import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int n = in.nextInt();
            char[][] arr = new char[n][n];
            int r = 0;
            for(int c1 = 0; c1 < n; c1++){
                for(int c2 = 0; c2 < n; c2++){
                    if((c1 + c2) % (n - 1) == 0){
                        arr[r][c1] = '*';
                        arr[r][c2] = '*';
                    }
                }
                r++;
            }
            for(r = 0; r < n; r++){
                for(int c = 0; c < n; c++){
                    if(arr[r][c] != '*'){
                        arr[r][c] = ' ';
                    }
                    System.out.print(arr[r][c]);
                }
                System.out.println();
            }
        }
    }
}
